-- GENERATED SPELL FOR [Rageclaw Hunter] --


function spell0_29439(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(50420,pUnit)
pUnit:RegisterEvent('Sorts_29439', 559, 1)
end

function spell1_29439(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(18651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29439', 541, 1)
end

function spell2_29439(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29439', 620, 1)
end

function Sorts_29439(pUnit, Event)
local choix_sorts_29439 = math.random(0, 2)
if choix_sorts_29439 == 0 then
pUnit:RegisterEvent('spell0_29439', 1, 1)
end
if choix_sorts_29439 == 1 then
pUnit:RegisterEvent('spell1_29439', 1, 1)
end
if choix_sorts_29439 == 2 then
pUnit:RegisterEvent('spell2_29439', 1, 1)
end
end

function mob29439_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29439', math.random(1500, 3000), 1)
end

function mob29439_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29439_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29439_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29439, 1, 'mob29439_Action')
RegisterUnitEvent(29439, 2, 'mob29439_Leave')
RegisterUnitEvent(29439, 3, 'mob29439_Kill')
RegisterUnitEvent(29439, 4, 'mob29439_Die')
